-------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\Andy baker\OneDrive - University of Colorado at Boulder Office 365\My Documents\Research\Paper PID Experiment\Mexico\JOP Mexico Results
> .log
  log type:  text
 opened on:   7 Mar 2018, 09:21:22

. *version 14
. 
. *I. Experiment 1: Next 3 are different treatments of one experiment. Treatments indexed by Random1
.         *1. working with sympathy(1) wording
. gen sympathy1=C1T3

. recode sympathy1 9=0 88=. 98=. 99=.
(sympathy1: 1051 changes made)

. 
. label values sympathy1 pid 

. 
. recode sympathy1 (0=1) (.=.) (else=0), gen(sympathy1_indep)
(390 differences between sympathy1 and sympathy1_indep)

. recode sympathy1 (1=1) (.=.) (else=0), gen(sympathy1_PAN)
(121 differences between sympathy1 and sympathy1_PAN)

. recode sympathy1 (2=1) (.=.) (else=0), gen(sympathy1_PRI)
(157 differences between sympathy1 and sympathy1_PRI)

. recode sympathy1 (3=1) (.=.) (else=0), gen(sympathy1_PRD)
(157 differences between sympathy1 and sympathy1_PRD)

. recode sympathy1 (4=1) (.=.) (else=0), gen(sympathy1_MORENA)
(157 differences between sympathy1 and sympathy1_MORENA)

. recode sympathy1 (5=1) (.=.) (else=0), gen(sympathy1_PVEM)
(157 differences between sympathy1 and sympathy1_PVEM)

. recode sympathy1 (6=1) (.=.) (else=0), gen(sympathy1_Other)
(157 differences between sympathy1 and sympathy1_Other)

. 
. ci proportions sympathy1*

                                                         -- Binomial Exact --
    Variable |        Obs  Proportion    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
sympathy1_~p |        390    .5974359    .0248331        .5468937    .6464877
sympathy1_~N |        390    .0923077    .0146574        .0654898    .1255009
sympathy1_~I |        390    .2153846    .0208163        .1755974    .2595528
sympathy1_~D |        390    .0589744    .0119289        .0377483     .087179
sympathy1_~A |        390    .0230769     .007603        .0106053    .0433538
-------------+---------------------------------------------------------------
sympathy1_~M |        390    .0051282    .0036169        .0006217    .0184012
sympathy1_~r |        390           0           0               0    .0094141*

(*) one-sided, 97.5% confidence interval

. 
.         *2. working with sympathy(2) wording
.                 *NOTE THAT IN THE PAPER THIS WAS RENUMBERED TO 3!
. gen sympathy2=C1T2

. recode sympathy2 9=0 88=. 98=. 99=.
(sympathy2: 1018 changes made)

. 
. label values sympathy2 pid 

. 
. recode sympathy2 (0=1) (.=.) (else=0), gen(sympathy2_indep)
(413 differences between sympathy2 and sympathy2_indep)

. recode sympathy2 (1=1) (.=.) (else=0), gen(sympathy2_PAN)
(148 differences between sympathy2 and sympathy2_PAN)

. recode sympathy2 (2=1) (.=.) (else=0), gen(sympathy2_PRI)
(190 differences between sympathy2 and sympathy2_PRI)

. recode sympathy2 (3=1) (.=.) (else=0), gen(sympathy2_PRD)
(190 differences between sympathy2 and sympathy2_PRD)

. recode sympathy2 (4=1) (.=.) (else=0), gen(sympathy2_MORENA)
(190 differences between sympathy2 and sympathy2_MORENA)

. recode sympathy2 (5=1) (.=.) (else=0), gen(sympathy2_PVEM)
(190 differences between sympathy2 and sympathy2_PVEM)

. recode sympathy2 (6=1) (.=.) (else=0), gen(sympathy2_Other)
(190 differences between sympathy2 and sympathy2_Other)

. 
. ci proportions sympathy2*

                                                         -- Binomial Exact --
    Variable |        Obs  Proportion    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
sympathy2_~p |        413    .5399516    .0245247        .4905337     .588793
sympathy2_~N |        413    .1016949    .0148726        .0742801    .1349713
sympathy2_~I |        413    .2324455    .0207845        .1925409    .2762318
sympathy2_~D |        413    .0702179     .012573        .0475272    .0992899
sympathy2_~A |        413    .0290557    .0082649        .0151017     .050204
-------------+---------------------------------------------------------------
sympathy2_~M |        413    .0121065    .0053813        .0039423    .0280251
sympathy2_~r |        413           0           0               0    .0088921*

(*) one-sided, 97.5% confidence interval

. 
.         *3. working with sympathy(4) wording
. gen sympathy4=C1T1b
(1,116 missing values generated)

. replace sympathy4=0 if C1T1A==2
(292 real changes made)

. replace sympathy4=0 if C1T1b==9 | C1T1b==98  
(3 real changes made)

. replace sympathy4=. if C1T1A>3
(0 real changes made)

. 
. label define pid 0 Independent 1 "PAN" 2 "PRI" 3 "PRD" 4 "MORENA" 5 "PVEM" 8 "Other"

. label values sympathy4 pid 

. 
. recode sympathy4 (0=1) (.=.) (else=0), gen(sympathy4_indep)
(384 differences between sympathy4 and sympathy4_indep)

. recode sympathy4 (1=1) (.=.) (else=0), gen(sympathy4_PAN)
(69 differences between sympathy4 and sympathy4_PAN)

. recode sympathy4 (2=1) (.=.) (else=0), gen(sympathy4_PRI)
(89 differences between sympathy4 and sympathy4_PRI)

. recode sympathy4 (3=1) (.=.) (else=0), gen(sympathy4_PRD)
(89 differences between sympathy4 and sympathy4_PRD)

. recode sympathy4 (4=1) (.=.) (else=0), gen(sympathy4_MORENA)
(89 differences between sympathy4 and sympathy4_MORENA)

. recode sympathy4 (5=1) (.=.) (else=0), gen(sympathy4_PVEM)
(89 differences between sympathy4 and sympathy4_PVEM)

. recode sympathy4 (6=1) (.=.) (else=0), gen(sympathy4_Other)
(89 differences between sympathy4 and sympathy4_Other)

. 
. ci proportions sympathy4*

                                                         -- Binomial Exact --
    Variable |        Obs  Proportion    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
sympathy4_~p |        384    .7682292    .0215332        .7227416    .8095267
sympathy4_~N |        384    .0520833    .0113388        .0321005    .0792947
sympathy4_~I |        384    .1302083    .0171736        .0982099    .1680383
sympathy4_~D |        384    .0260417    .0081272        .0125571     .047369
sympathy4_~A |        384    .0130208    .0057851         .004241    .0301232
-------------+---------------------------------------------------------------
sympathy4_~M |        384    .0052083    .0036732        .0006314    .0186867
sympathy4_~r |        384           0           0               0    .0095605*

(*) one-sided, 97.5% confidence interval

. 
. *II: Experiment 2: Next 3 are different treatments of one experiment. Treatments indexed by random3
.         *1: working with close(1) wording
. gen close1=C11T1

. recode close1 9=0 88=. 98=. 99=.
(close1: 1031 changes made)

. 
. label values close1 pid 

. 
. recode close1 (0=1) (.=.) (else=0), gen(close1_indep)
(388 differences between close1 and close1_indep)

. recode close1 (1=1) (.=.) (else=0), gen(close1_PAN)
(129 differences between close1 and close1_PAN)

. recode close1 (2=1) (.=.) (else=0), gen(close1_PRI)
(177 differences between close1 and close1_PRI)

. recode close1 (3=1) (.=.) (else=0), gen(close1_PRD)
(177 differences between close1 and close1_PRD)

. recode close1 (4=1) (.=.) (else=0), gen(close1_MORENA)
(177 differences between close1 and close1_MORENA)

. recode close1 (5=1) (.=.) (else=0), gen(close1_PVEM)
(177 differences between close1 and close1_PVEM)

. recode close1 (6=1) (.=.) (else=0), gen(close1_Other)
(177 differences between close1 and close1_Other)

. 
. ci proportions close1*

                                                         -- Binomial Exact --
    Variable |        Obs  Proportion    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
close1_indep |        388    .5438144     .025286        .4927927    .5941628
  close1_PAN |        388    .1237113    .0167152        .0926408    .1606595
  close1_PRI |        388    .2036082     .020443        .1646451    .2471611
  close1_PRD |        388    .0618557    .0122295        .0400305    .0906408
close1_MOR~A |        388    .0489691    .0109558        .0297366    .0754171
-------------+---------------------------------------------------------------
 close1_PVEM |        388    .0051546    .0036355        .0006249    .0184954
close1_Other |        388           0           0               0    .0094624*

(*) one-sided, 97.5% confidence interval

. 
.         *2: working with prefer(1) wording
. gen prefer1=C11T2

. recode prefer1 9=0 88=. 98=. 99=.
(prefer1: 1031 changes made)

. 
. label values prefer1 pid 

. 
. recode prefer1 (0=1) (.=.) (else=0), gen(prefer1_indep)
(388 differences between prefer1 and prefer1_indep)

. recode prefer1 (1=1) (.=.) (else=0), gen(prefer1_PAN)
(135 differences between prefer1 and prefer1_PAN)

. recode prefer1 (2=1) (.=.) (else=0), gen(prefer1_PRI)
(177 differences between prefer1 and prefer1_PRI)

. recode prefer1 (3=1) (.=.) (else=0), gen(prefer1_PRD)
(177 differences between prefer1 and prefer1_PRD)

. recode prefer1 (4=1) (.=.) (else=0), gen(prefer1_MORENA)
(177 differences between prefer1 and prefer1_MORENA)

. recode prefer1 (5=1) (.=.) (else=0), gen(prefer1_PVEM)
(177 differences between prefer1 and prefer1_PVEM)

. recode prefer1 (6=1) (.=.) (else=0), gen(prefer1_Other)
(177 differences between prefer1 and prefer1_Other)

. 
. ci proportions prefer1*

                                                         -- Binomial Exact --
    Variable |        Obs  Proportion    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
prefer1_in~p |        388    .5438144     .025286        .4927927    .5941628
 prefer1_PAN |        388    .1082474     .015773        .0791366    .1434945
 prefer1_PRI |        388    .2113402    .0207262         .171765     .255383
 prefer1_PRD |        388    .0927835    .0147291        .0658319    .1261358
prefer1_MO~A |        388    .0257732    .0080445        .0124269     .046886
-------------+---------------------------------------------------------------
prefer1_PVEM |        388     .007732    .0044468        .0015974    .0224287
prefer1_Ot~r |        388           0           0               0    .0094624*

(*) one-sided, 97.5% confidence interval

. 
.         *3: working with identity(1) wording
. gen identity1=C11T3

. recode identity1 9=0 88=. 98=. 99=.
(identity1: 1051 changes made)

. 
. label values identity1 pid 

. 
. recode identity1 (0=1) (.=.) (else=0), gen(identity1_indep)
(400 differences between identity1 and identity1_indep)

. recode identity1 (1=1) (.=.) (else=0), gen(identity1_PAN)
(120 differences between identity1 and identity1_PAN)

. recode identity1 (2=1) (.=.) (else=0), gen(identity1_PRI)
(157 differences between identity1 and identity1_PRI)

. recode identity1 (3=1) (.=.) (else=0), gen(identity1_PRD)
(157 differences between identity1 and identity1_PRD)

. recode identity1 (4=1) (.=.) (else=0), gen(identity1_MORENA)
(157 differences between identity1 and identity1_MORENA)

. recode identity1 (5=1) (.=.) (else=0), gen(identity1_PVEM)
(157 differences between identity1 and identity1_PVEM)

. recode identity1 (6=1) (.=.) (else=0), gen(identity1_Other)
(157 differences between identity1 and identity1_Other)

. 
. ci proportions identity1*

                                                         -- Binomial Exact --
    Variable |        Obs  Proportion    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
identity1_~p |        400       .6075    .0244154        .5577451    .6556519
identity1_~N |        400       .0925    .0144865        .0659659    .1252433
identity1_~I |        400       .2025    .0200931        .1641948    .2452721
identity1_~D |        400       .0575    .0116398        .0367955    .0850316
identity1_~A |        400         .03    .0085294        .0155956    .0518172
-------------+---------------------------------------------------------------
identity1_~M |        400       .0075    .0043139        .0015494    .0217607
identity1_~r |        400           0           0               0    .0091798*

(*) one-sided, 97.5% confidence interval

. 
. 
. *III. Randomization check
. recode PA 2=1 1=0
(PA: 1208 changes made)

. recode Tipo 1=3 3=2 2=1
(Tipo: 1208 changes made)

. recode PB 98=.
(PB: 4 changes made)

. recode i1 2=0
(i1: 638 changes made)

. bysort Random1: ci mean PA PB Tipo i1

-------------------------------------------------------------------------------------------------------------------------------------------------------------
-> Random1 = Tratamient

    Variable |        Obs        Mean    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
          PA |        387    .4496124    .0253198        .3998305    .4993943
          PB |        385    41.24156      .82245        39.62449    42.85863
        Tipo |        387    2.511628    .0394682        2.434028    2.589227
          i1 |        387    .4599483    .0253676        .4100725    .5098242

-------------------------------------------------------------------------------------------------------------------------------------------------------------
-> Random1 = Tratamient

    Variable |        Obs        Mean    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
          PA |        422    .5592417    .0241969          .51168    .6068034
          PB |        421    39.79335    .7485122        38.32205    41.26465
        Tipo |        422    2.509479    .0380679        2.434652    2.584306
          i1 |        422    .4739336    .0243354        .4260997    .5217676

-------------------------------------------------------------------------------------------------------------------------------------------------------------
-> Random1 = Tratamient

    Variable |        Obs        Mean    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
          PA |        399    .4761905    .0250343        .4269745    .5254065
          PB |        398    41.30905    .7955859        39.74496    42.87313
        Tipo |        399    2.448622    .0414393        2.367154    2.530089
          i1 |        399     .481203     .025045        .4319659    .5304401

. 
. recode EA-EO (1=1) (2=0) (else=.)
(EA: 48 changes made)
(EB: 726 changes made)
(EC: 333 changes made)
(ED: 681 changes made)
(EE: 319 changes made)
(EF: 116 changes made)
(EG: 1100 changes made)
(EH: 1001 changes made)
(EI: 714 changes made)
(EJ: 533 changes made)
(EK: 82 changes made)
(EL: 5 changes made)
(EM: 119 changes made)
(EN: 840 changes made)
(EO: 951 changes made)

. polychoricpca EA EB EC ED EE EH EI EJ EK EM, score(wealthtemp) nscore(1)

Polychoric correlation matrix

           EA         EB         EC         ED         EE         EH         EI         EJ         EK         EM
EA          1
EB  .29864874          1
EC  .22611181  .23662553          1
ED   .3042188  .39227608  .46995203          1
EE  .59214615  .48846851  .37013726  .47917913          1
EH  .41550025  .37578284  .52366324  .50413451  .44417033          1
EI  .45920293  .69238939  .59434523  .63429552  .56399991  .56416865          1
EJ  .32122408  .40172093  .44035173  .39767199  .47672999  .62959415  .48838223          1
EK  .31673195  .48827708  .39176903   .3859479  .60981301  .51562988  .52494563   .5545395          1
EM  .73231753  .44090326  .30270983  .27774831  .55477344  .27199977  .53941237  .34941861  .49906407          1

Principal component analysis

 k  |  Eigenvalues  |  Proportion explained  |  Cum. explained
----+---------------+------------------------+------------------
  1 |    5.146416   |    0.514642            |   0.514642
  2 |    1.214110   |    0.121411            |   0.636053
  3 |    0.800872   |    0.080087            |   0.716140
  4 |    0.757049   |    0.075705            |   0.791845
  5 |    0.559100   |    0.055910            |   0.847755
  6 |    0.520114   |    0.052011            |   0.899766
  7 |    0.360651   |    0.036065            |   0.935831
  8 |    0.344346   |    0.034435            |   0.970266
  9 |    0.164885   |    0.016488            |   0.986754
  10 |    0.132459  |    0.013246            |   1.000000

               Scoring coefficients

    Variable    |  Coeff. 1  |  Coeff. 2  |  Coeff. 3 
------------------------------------------------------
 EA            
             0  | -0.619744  | -1.137757  | -0.856511 
             1  |  0.024205  |  0.044438  |  0.033453 
 EB            
             0  | -0.194144  | -0.041978  |  0.473651 
             1  |  0.285969  |  0.061832  | -0.697676 
 EC            
             0  | -0.338885  |  0.474132  | -0.386966 
             1  |  0.127082  | -0.177800  |  0.145112 
 ED            
             0  | -0.209977  |  0.197690  |  0.054529 
             1  |  0.267272  | -0.251633  | -0.069408 
 EE            
             0  | -0.430860  | -0.270363  | -0.005564 
             1  |  0.151626  |  0.095144  |  0.001958 
 EH            
             0  | -0.100959  |  0.098665  | -0.091485 
             1  |  0.475855  | -0.465040  |  0.431201 
 EI            
             0  | -0.249472  |  0.056054  |  0.169794 
             1  |  0.353877  | -0.079512  | -0.240853 
 EJ            
             0  | -0.280697  |  0.211279  | -0.154223 
             1  |  0.218311  | -0.164321  |  0.119946 
 EK            
             0  | -0.639075  |  0.034735  |  0.253728 
             1  |  0.044363  | -0.002411  | -0.017613 
 EM            
             0  | -0.540329  | -0.942163  | -0.170045 
             1  |  0.057080  |  0.099529  |  0.017963 

. impute wealthtemp EA EB EC ED EE EH EI EJ EK EM, gen(wealth)
  0.58% (7) observations imputed

. recode PC 98=.
(PC: 4 changes made)

. bysort random3: ci mean PA PB Tipo i1 PC wealth

-------------------------------------------------------------------------------------------------------------------------------------------------------------
-> random3 = Tratamient

    Variable |        Obs        Mean    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
          PA |        401    .4638404    .0249345        .4148213    .5128595
          PB |        397    39.71537    .7790904        38.18369    41.24704
        Tipo |        401    2.506234    .0391807        2.429209     2.58326
          i1 |        401    .4713217    .0249588        .4222548    .5203886
          PC |        401    9.249377    .2356223        8.786164    9.712589
-------------+---------------------------------------------------------------
      wealth |        401    .0180057    .0619098       -.1037036    .1397149

-------------------------------------------------------------------------------------------------------------------------------------------------------------
-> random3 = Tratamient

    Variable |        Obs        Mean    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
          PA |        396    .4848485    .0251462        .4354114    .5342856
          PB |        396    40.69697    .8106173        39.10331    42.29063
        Tipo |        396    2.444444    .0419888        2.361895    2.526994
          i1 |        396    .4747475    .0251256        .4253508    .5241441
          PC |        394    9.116751    .2324507        8.659749    9.573754
-------------+---------------------------------------------------------------
      wealth |        396   -.0179653    .0617554       -.1393756    .1034451

-------------------------------------------------------------------------------------------------------------------------------------------------------------
-> random3 = Tratamient

    Variable |        Obs        Mean    Std. Err.       [95% Conf. Interval]
-------------+---------------------------------------------------------------
          PA |        411     .540146    .0246135        .4917616    .5885304
          PB |        411    41.82238    .7725639         40.3037    43.34106
        Tipo |        411    2.518248    .0377874        2.443967    2.592529
          i1 |        411    .4695864    .0246475        .4211351    .5180376
          PC |        409    8.787286     .219453        8.355886    9.218686
-------------+---------------------------------------------------------------
      wealth |        411    -.043222    .0603123        -.161782     .075338

. 
. 
. 
. *IV: Feeling thermometer variables
. recode C8 88=. 98=. , gen(ft_PAN)
(70 differences between C8 and ft_PAN)

. recode C9 88=. 98=. , gen(ft_PRI)
(55 differences between C9 and ft_PRI)

. recode C10 88=. 98=. , gen(ft_PRD)
(66 differences between C10 and ft_PRD)

. 
. *V: Descriptives
. summ identity1_PRI prefer1_PRI close1_PRI sympathy1_PRI sympathy2_PRI sympathy4_PRI identity1_PAN prefer1_PAN close1_PAN sympathy1_PAN sympathy2_PAN sympat
> hy4_PAN identity1_PRD prefer1_PRD close1_PRD sympathy1_PRD sympathy2_PRD sympathy4_PRD

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
identity1_~I |        400       .2025    .4023661          0          1
 prefer1_PRI |        388    .2113402    .4087863          0          1
  close1_PRI |        388    .2036082    .4032009          0          1
sympathy1_~I |        390    .2153846     .411617          0          1
sympathy2_~I |        413    .2324455    .4229038          0          1
-------------+---------------------------------------------------------
sympathy4_~I |        384    .1302083    .3369716          0          1
identity1_~N |        400       .0925    .2900933          0          1
 prefer1_PAN |        388    .1082474    .3110938          0          1
  close1_PAN |        388    .1237113    .3296771          0          1
sympathy1_~N |        390    .0923077    .2898316          0          1
-------------+---------------------------------------------------------
sympathy2_~N |        413    .1016949    .3026133          0          1
sympathy4_~N |        384    .0520833     .222485          0          1
identity1_~D |        400       .0575    .2330871          0          1
 prefer1_PRD |        388    .0927835    .2905034          0          1
  close1_PRD |        388    .0618557    .2412043          0          1
-------------+---------------------------------------------------------
sympathy1_~D |        390    .0589744    .2358793          0          1
sympathy2_~D |        413    .0702179    .2558238          0          1
sympathy4_~D |        384    .0260417     .159467          0          1

. 
. *VI: Statistical tests
. egen indep_exp1=rsum(sympathy1_indep sympathy2_indep sympathy4_indep)

. replace indep_exp1=. if sympathy1_indep==. & sympathy2_indep==. & sympathy4_indep==.
(21 real changes made, 21 to missing)

. *this is test of sympathy1 to sympathy2
. ttest indep_exp1 if Random1==3|Random1==2, by(Random1) unequal

Two-sample t test with unequal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
Tratamie |     413    .5399516    .0245545    .4990058    .4916839    .5882192
Tratamie |     390    .5974359     .024865    .4910443    .5485493    .6463225
---------+--------------------------------------------------------------------
combined |     803    .5678705    .0174922    .4956809    .5335346    .6022064
---------+--------------------------------------------------------------------
    diff |           -.0574843    .0349455               -.1260801    .0111115
------------------------------------------------------------------------------
    diff = mean(Tratamie) - mean(Tratamie)                        t =  -1.6450
Ho: diff = 0                     Satterthwaite's degrees of freedom =  799.636

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0502         Pr(|T| > |t|) = 0.1004          Pr(T > t) = 0.9498

. 
. *this is test of sympathy2 to sympathy4
. ttest indep_exp1 if Random1==1|Random1==2, by(Random1) unequal

Two-sample t test with unequal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
Tratamie |     384    .7682292    .0215613    .4225139    .7258358    .8106225
Tratamie |     413    .5399516    .0245545    .4990058    .4916839    .5882192
---------+--------------------------------------------------------------------
combined |     797    .6499373    .0169064    .4772888    .6167508    .6831237
---------+--------------------------------------------------------------------
    diff |            .2282776    .0326774                .1641326    .2924226
------------------------------------------------------------------------------
    diff = mean(Tratamie) - mean(Tratamie)                        t =   6.9858
Ho: diff = 0                     Satterthwaite's degrees of freedom =  788.205

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 1.0000         Pr(|T| > |t|) = 0.0000          Pr(T > t) = 0.0000

. 
. egen PRD_exp2=rsum(sympathy1_PRD sympathy2_PRD sympathy4_PRD)

. replace PRD_exp2=. if sympathy1_PRD==. & sympathy2_PRD==. & sympathy4_PRD==.
(21 real changes made, 21 to missing)

. *this is test of sympathy2 to sympathy4
. ttest PRD_exp2 if Random1==1|Random1==2, by(Random1) unequal

Two-sample t test with unequal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
Tratamie |     384    .0260417    .0081378     .159467    .0100414     .042042
Tratamie |     413    .0702179    .0125883    .2558238    .0454727    .0949632
---------+--------------------------------------------------------------------
combined |     797    .0489335    .0076463    .2158645    .0339242    .0639428
---------+--------------------------------------------------------------------
    diff |           -.0441763    .0149896               -.0736064   -.0147461
------------------------------------------------------------------------------
    diff = mean(Tratamie) - mean(Tratamie)                        t =  -2.9471
Ho: diff = 0                     Satterthwaite's degrees of freedom =  697.306

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0017         Pr(|T| > |t|) = 0.0033          Pr(T > t) = 0.9983

. drop PRD_exp2

. egen indep_exp2=rsum(close1_indep prefer1_indep identity1_indep)

. replace indep_exp2=. if close1_indep==. & prefer1_indep==. & identity1_indep==.
(32 real changes made, 32 to missing)

. *this is test of prefer to consider
. ttest indep_exp2 if random3==1|random3==3, by(random3) unequal

Two-sample t test with unequal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
Tratamie |     388    .5438144    .0253187    .4987197    .4940351    .5935938
Tratamie |     400       .6075    .0244459    .4889186    .5594411    .6555589
---------+--------------------------------------------------------------------
combined |     788    .5761421    .0176152    .4944822    .5415638    .6107205
---------+--------------------------------------------------------------------
    diff |           -.0636856    .0351943               -.1327718    .0054006
------------------------------------------------------------------------------
    diff = mean(Tratamie) - mean(Tratamie)                        t =  -1.8095
Ho: diff = 0                     Satterthwaite's degrees of freedom =  784.013

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0354         Pr(|T| > |t|) = 0.0707          Pr(T > t) = 0.9646

. *this is test of closeness to consider
. ttest indep_exp2 if random3==2|random3==3, by(random3) unequal

Two-sample t test with unequal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
Tratamie |     388    .5438144    .0253187    .4987197    .4940351    .5935938
Tratamie |     400       .6075    .0244459    .4889186    .5594411    .6555589
---------+--------------------------------------------------------------------
combined |     788    .5761421    .0176152    .4944822    .5415638    .6107205
---------+--------------------------------------------------------------------
    diff |           -.0636856    .0351943               -.1327718    .0054006
------------------------------------------------------------------------------
    diff = mean(Tratamie) - mean(Tratamie)                        t =  -1.8095
Ho: diff = 0                     Satterthwaite's degrees of freedom =  784.013

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0354         Pr(|T| > |t|) = 0.0707          Pr(T > t) = 0.9646

. 
. egen PRD_exp2=rsum(close1_PRD prefer1_PRD identity1_PRD)

. replace PRD_exp2=. if close1_PRD==. & prefer1_PRD==. & identity1_PRD==.
(32 real changes made, 32 to missing)

. *this is test of prefer to closeness
. ttest PRD_exp2 if random3==1|random3==2, by(random3) unequal

Two-sample t test with unequal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
Tratamie |     388    .0618557    .0122453    .2412043      .03778    .0859313
Tratamie |     388    .0927835    .0147481    .2905034    .0637871    .1217799
---------+--------------------------------------------------------------------
combined |     776    .0773196    .0095944    .2672701    .0584854    .0961538
---------+--------------------------------------------------------------------
    diff |           -.0309278    .0191691               -.0685593    .0067037
------------------------------------------------------------------------------
    diff = mean(Tratamie) - mean(Tratamie)                        t =  -1.6134
Ho: diff = 0                     Satterthwaite's degrees of freedom =  748.692

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0535         Pr(|T| > |t|) = 0.1071          Pr(T > t) = 0.9465

. 
. egen PAN_exp2=rsum(close1_PAN prefer1_PAN identity1_PAN)

. replace PAN_exp2=. if close1_PAN==. & prefer1_PAN==. & identity1_PAN==.
(32 real changes made, 32 to missing)

. *this is test of prefer to consider
. ttest PAN_exp2 if random3==1|random3==3, by(random3) unequal

Two-sample t test with unequal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
Tratamie |     388    .1237113    .0167368    .3296771    .0908049    .1566178
Tratamie |     400       .0925    .0145047    .2900933    .0639849    .1210151
---------+--------------------------------------------------------------------
combined |     788     .107868    .0110579    .3104107    .0861615    .1295745
---------+--------------------------------------------------------------------
    diff |            .0312113    .0221474               -.0122653     .074688
------------------------------------------------------------------------------
    diff = mean(Tratamie) - mean(Tratamie)                        t =   1.4093
Ho: diff = 0                     Satterthwaite's degrees of freedom =  766.985

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.9204         Pr(|T| > |t|) = 0.1592          Pr(T > t) = 0.0796

. *this is test of consider to closeness
. ttest PAN_exp2 if random3==2|random3==3, by(random3) unequal

Two-sample t test with unequal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
Tratamie |     388    .1082474    .0157934    .3110938    .0771958     .139299
Tratamie |     400       .0925    .0145047    .2900933    .0639849    .1210151
---------+--------------------------------------------------------------------
combined |     788    .1002538    .0107059    .3005289    .0792383    .1212693
---------+--------------------------------------------------------------------
    diff |            .0157474    .0214433               -.0263462    .0578411
------------------------------------------------------------------------------
    diff = mean(Tratamie) - mean(Tratamie)                        t =   0.7344
Ho: diff = 0                     Satterthwaite's degrees of freedom =  778.188

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.7685         Pr(|T| > |t|) = 0.4629          Pr(T > t) = 0.2315

. 
. 
end of do-file

. log close
      name:  <unnamed>
       log:  C:\Users\Andy baker\OneDrive - University of Colorado at Boulder Office 365\My Documents\Research\Paper PID Experiment\Mexico\JOP Mexico Results
> .log
  log type:  text
 closed on:   7 Mar 2018, 09:21:50
-------------------------------------------------------------------------------------------------------------------------------------------------------------
